<?php
include("../../utility/connection.php");
include("../../model/mSupplier.php");
session_start();

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $vNama = trim(mysql_real_escape_string($_POST["Editbox1"]));
    $vAlamat = trim(mysql_real_escape_string($_POST["Editbox2"]));
    $vTelp = trim(mysql_real_escape_string($_POST["Editbox3"]));
    $vEmail = trim(mysql_real_escape_string($_POST["Editbox4"]));
//    $vMilist = trim(mysql_real_escape_string($_POST["hidMilist"]));
//    $vLogin = trim(mysql_real_escape_string($_POST["Editbox5"]));
//    $vPassword = trim(mysql_real_escape_string($_POST["Editbox6"]));
    
    //echo $vIDKategori.', '.$vNama.', '.$vKeterangan.', '.$vUkuran.', '.$vWarna.', '.$vTglMasuk.', '.$vHarga.', '.$vJumlah.', '.$vIDSupplier;
    fnInsertSupplier($vNama,$vAlamat,$vTelp,$vEmail);
    header("location: ../mstSupplier.php");
} else {
    echo 'test1';
}
?>
